package tbs.framework.async.notifiers;

import org.jetbrains.annotations.NotNull;
import tbs.framework.async.container.IAsyncTaskService;
import tbs.framework.async.task.IAsyncTask;
import tbs.framework.async.task.ICancelable;

/**
 * 取消通知接口
 * @author abstergo
 */
public interface ICancelNotifier {
    /**
     * 取消任务通知
     *
     * @param cancelable 要取消的任务
     * @param asyncTask  异步任务
     * @param container  异步任务服务
     */
    void cancelTaskNotify(@NotNull ICancelable cancelable, @NotNull IAsyncTask asyncTask,
        @NotNull IAsyncTaskService container);
}

